all: main.o
	gcc -ldl -L ./sdl2/lib  -lSDL2 -L./ffmpeg/lib -lavutil -lavcodec -lavformat  -lswscale main.o -o demoplayer

main.o: main.cpp
	g++ -Wall  -I./ffmpeg/include/ -I./sdl2/include -ldl -c main.cpp

clean:
	rm *.o
